package com.zsx.shopping.common.api.order.feign;

import com.zsx.shopping.common.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("shopping-order")
public interface OrderFeignService {

    @PostMapping("/order/order/toTrade")
    R<String> toTrade();

    @GetMapping("/order/order/orderStatus")
    R<Byte> getOrderStatus(@RequestParam("orderId") Long orderId);
}
